<!DOCTYPE html>
<html>
	<head>
		<title>用户登录</title>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		
		<script type="text/javascript">
    /* This function runs once the page is loaded, but appMobi is not yet active */
	var webRoot="../kitchensink/";
	$.ui.autoLaunch=false;
    $.ui.openLinksNewTab=false;
    
 
	$.ui.ready(function(){
		console.log('ready');
		//alert("ready");
		  
 
		
	});
   
	function getLength(){
		alert(MawAction.stack.length);	
	} 
</script>
		
	</head>
	<body>
		 
		<a href="http://192.168.84.86:8080/static/mobile-demo/jQ.Mobi/lib/baseControl.html">baseControl.htm</a>
		<a onclick="getLength()">getLength</a>
			<header id="testheader">
		    <a id="backButton" onclick="MawHistory.goBack()" class='button' style='display:block;left:0px;left:auto;overflow:hidden'></a>
		    <h1>Custom postback</h1>
		</header>
		<ul>
			<li>
				选择框：
				<label for="state">状态：</label>
	      <span>
          <select id="state" class='jq-ui-forms'>
            <option value='1'>USA 1</option>
            <option value='2'>USA 2</option>
            <option value='3'>USA 3</option>
            <option value='4'>USA 4</option>
            <option value='5'>USA 5</option>
            <option value='6'>USA 6</option>
            <option value='7'>USA 7</option>
            <option value='8'>USA 8</option>
            <option value='9'>USA 9</option>
            <option value='10'>USA 10</option>
          </select>
	      </span>
		  </li>		
		</ul>
		<table class="table_result" id="table1"> 
    <thead>
              <tr>
								<td>序号</td>
                <td>中文船名</td>
                <td>英文船名</td>
                <td>出口航次</td>
                <td>船公司</td>
                <td>内外贸</td>
                <td>进箱开始时间</td>
                <td>进箱结束时间</td>
                <td>港口代码（参考)</td>
                			
							</tr>
            </thead>
            <tbody>
                <tr>
                    <td>1</td>
                    <td><a onclick="HStemp_postBack.postBack('东进维纳斯')">东进维纳斯</a></td>
                    <td><a onclick="HStemp_postBack.postBack('DONGJIN VENUS')">DONGJIN VENUS</a></td>
                    <td>1218E</td>
                    <td>兴亚海运</td>
                    <td>W</td>
                    <td>2012-01-10 10:00:01</td>
                    <td>2012-01-14 20:00:01</td>
                    <td>
                    	
                    	<input value="详细信息" name="detail" class="detail" id="HLCJV6" type="button" onclick="detail()">
                    	<a onclick="HStemp_postBack.noteBack('postBack2.html');return false;"  href="postBack2.html?ssss">postBack2</a> <span id="span2"></span>	
                    </td>
                   
                    
                </tr>
                <tr>
                    <td>2</td>
                    <td>兴亚釜山</td>
                    <td>KWATER</td>
                    <td>0086N</td>
                    <td>兴亚海运</td>
                    <td>W</td>
                    <td>2012-01-10 10:00:01</td>
                    <td>2012-01-14 20:00:01</td>
                    <td><input value="详细信息" name="detail" class="detail" id="HLCJV6" type="button" onclick="detail()"></td>
                </tr>
                <tr>
                    <td>3</td>
                    <td>东进维纳斯</td>
                    <td>DONGJIN VENUS</td>
                    <td>1218E</td>
                    <td>东进商船</td>
                    <td>W</td>
                    <td>2012-01-10 10:00:01</td>
                    <td>2012-01-14 20:00:01</td>
                    <td><input value="详细信息" name="detail" class="detail" id="HLCJV6" type="button" onclick="detail()"></td>
                </tr>
                <tr>
                    <td>4</td>
                    <td>兴亚釜山</td>
                    <td>KWATER</td>
                    <td>0086N</td>
                    <td>兴亚海运</td>
                    <td class="">W</td>
                    <td>2012-01-10 10:00:01</td>
                    <td>2012-01-14 20:00:01</td>
                    <td><input value="详细信息" name="detail" class="detail" id="HLCJV6" type="button" onclick="detail()"></td>
                </tr>
                <tr>
                    <td>2</td>
                    <td>兴亚釜山</td>
                    <td>KWATER</td>
                    <td>0086N</td>
                    <td>兴亚海运</td>
                    <td>W</td>
                    <td>2012-01-10 10:00:01</td>
                    <td>2012-01-14 20:00:01</td>
                    <td><input value="详细信息" name="detail" class="detail" id="HLCJV6" type="button" onclick="detail()"></td>
                </tr>
                <tr>
                    <td>3</td>
                    <td>东进维纳斯</td>
                    <td>DONGJIN VENUS</td>
                    <td>1218E</td>
                    <td>东进商船</td>
                    <td>W</td>
                    <td>2012-01-10 10:00:01</td>
                    <td>2012-01-14 20:00:01</td>
                    <td><input value="详细信息" name="detail" class="detail" id="HLCJV6" type="button" onclick="detail()"></td>
                </tr>
                <tr>
                    <td>4</td>
                    <td>兴亚釜山</td>
                    <td>KWATER</td>
                    <td>0086N</td>
                    <td>兴亚海运</td>
                    <td>W</td>
                    <td>2012-01-10 10:00:01</td>
                    <td>2012-01-14 20:00:01</td>
                    <td><input value="详细信息" name="detail" class="detail" id="HLCJV6" type="button" onclick="detail()"></td>
                </tr>
                <tr>
                    <td>2</td>
                    <td>兴亚釜山</td>
                    <td>KWATER</td>
                    <td>0086N</td>
                    <td>兴亚海运</td>
                    <td>W</td>
                    <td>2012-01-10 10:00:01</td>
                    <td>2012-01-14 20:00:01</td>
                    <td><input value="详细信息" name="detail" class="detail" id="HLCJV6" type="button" onclick="detail()"></td>
                </tr>
                <tr>
                    <td>3</td>
                    <td>东进维纳斯</td>
                    <td>DONGJIN VENUS</td>
                    <td>1218E</td>
                    <td>东进商船</td>
                    <td>W</td>
                    <td>2012-01-10 10:00:01</td>
                    <td>2012-01-14 20:00:01</td>
                    <td><input value="详细信息" name="detail" class="detail" id="HLCJV6" type="button" onclick="detail()"></td>
                </tr>
                <tr>
                    <td>4</td>
                    <td>兴亚釜山</td>
                    <td>KWATER</td>
                    <td>0086N</td>
                    <td>兴亚海运</td>
                    <td>W</td>
                    <td>2012-01-10 10:00:01</td>
                    <td>2012-01-14 20:00:01</td>
                    <td><input value="详细信息" name="detail" class="detail" id="HLCJV6" type="button" onclick="detail()"></td>
                </tr>
            </tbody>
        </table>      
        
        <script type="text/javascript">
        	var HStemp_postBack = {};
					(function(temp){
						temp.noteBack = function(url){
							$.ajax(
								{
									url:url,
									success: function(str){
									  MawAction.requestPostBack(str,function(param){
									  	var receSpan =  document.getElementById("span2");
									  	receSpan.innerHTML = param;
									  	MawHistory.goBack();
									  });
									},
									error: function(){
										alert("error");	
									}	
									
								}
							);
						},
						temp.postBack = function(param){	 
							MawAction.doPostBack(param);
						}
					 
					})(HStemp_postBack);
					
     
					
        
        </script>                  
	</body>
</html>